﻿## -*- coding: utf-8 -*-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>${self.title()}</title>
  <link href="/css/style.css" type="text/css" rel="stylesheet" />

  ${self.head()}
</head>

<body>
  <div id="header" align="center">
    <h1><a href="${url('/')}">mynewsweb</a></h1>
    <div id="user_login">
    % if h.user():
        ${h.user().display_name or h.user().user_name}.
        <a href="/account/logout">Logout</a>
    % else:
      <a href="/account/register">Register</a> |
      <a href="/account/login?came_from=${h.url_for()}">Login</a>
    % endif
    </div>  <!-- id="user_login" -->
  </div>  <!-- id="header" -->

  <div id="nav_strip">
    <ul>
      <li> <a href="/news/list?start=0&end=30&size=30&class_id=1">Pozitive</a> </li>
      <li> <a href="/news/list?start=0&end=30&size=30&class_id=-1">Negative</a> </li>
      <li> <a href="/news/top_similarity?kernel_id=0&size=30&start=0&end=30">Top BOW Tf-Idf</a> </li>
      <li> <a href="/news/top_similarity?kernel_id=1&size=30&start=0&end=30">Top n-gram</a> </li>
      <li> <a href="/news/pics?results_id=0">Graphs</a> </li>
    </ul>
  </div>  <!-- id="nav_strip" -->

  <div class="clearingdiv" />

  ${h.flash.render("flash_container")|n}

  <div id="maincontent">
  ${next.body()}
  </div>  <!-- id="maincontent" -->

  <div id="rightcontent">
    ${self.rightcontent()}
  </div>    <!-- id="rightcontent" -->

  <div id="footer">
    &copy; Copyright <a href="#">Dušan Šmitran</a> 2010.
  </div>  <!-- id="footer" -->
</body>

<%def name="head()"></%def>
<%def name="rightcontent()"></%def>
